package com.wenlin.myproduction.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author 文琳
 * @Email 377979485@qq.com
 * @desc
 * @time 2023-02-09 星期四 11:45
 */
public class ScheduleContentClickBean implements Parcelable {
    private ScheduleRecordBean.ListsDTO listsDTO;
    private int pos;

    public ScheduleContentClickBean(ScheduleRecordBean.ListsDTO listsDTO, int pos) {
        this.listsDTO = listsDTO;
        this.pos = pos;
    }

    public ScheduleRecordBean.ListsDTO getListsDTO() {
        return listsDTO;
    }

    public void setListsDTO(ScheduleRecordBean.ListsDTO listsDTO) {
        this.listsDTO = listsDTO;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.listsDTO, flags);
        dest.writeInt(this.pos);
    }

    protected ScheduleContentClickBean(Parcel in) {
        this.listsDTO = in.readParcelable(ScheduleRecordBean.ListsDTO.class.getClassLoader());
        this.pos = in.readInt();
    }

    public static final Parcelable.Creator<ScheduleContentClickBean> CREATOR = new Parcelable.Creator<ScheduleContentClickBean>() {
        @Override
        public ScheduleContentClickBean createFromParcel(Parcel source) {
            return new ScheduleContentClickBean(source);
        }

        @Override
        public ScheduleContentClickBean[] newArray(int size) {
            return new ScheduleContentClickBean[size];
        }
    };
}
